package com.luoyx.hauyne.tracelog.query;

import com.luoyx.hauyne.mybatisplus.query.PageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * 操作日志查询条件
 *
 * @author Alan.Luo
 */
@Getter
@Setter
@ToString
public class OperationLogQuery extends PageQuery {

    /**
     * 操作类型
     */
    @Schema(description = "操作类型", required = true)
    @NotBlank(message = "操作类型不能为空")
    private String type;

    /**
     * 业务id
     */
    @Schema(description = "业务id", required = true)
    @NotNull(message = "业务id不能为空")
    private Long bizId;
}
